package com.gjy.jvm;

import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;

/**
 * @author gjy
 * @version 1.0
 * @since 2024-12-17 09:27:38
 */
public class ManageUtil {
    public static void main(String[] args) {
        OperatingSystemMXBean bean = ManagementFactory.getOperatingSystemMXBean();

        System.out.println(bean.getAvailableProcessors());
        System.out.println(bean.getSystemLoadAverage());
        System.out.println(bean.getVersion());
        System.out.println(bean.getName());
        System.out.println(bean.getArch());
    }
}
